package com.lyx.server.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.lyx.common.vo.R;
import com.lyx.server.dao.CouponLogDao;
import com.lyx.server.entity.CouponLog;
import com.lyx.server.service.CouponLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 优惠券⽇志表(CouponLog)表服务实现类
 *
 * @author McMeloxD
 * @since 2024-08-14 18:13:09
 */
@Service("couponLogService")
public class CouponLogServiceImpl  implements CouponLogService {
    @Resource
    private CouponLogDao dao;
    @Override
    public R queryByUid(Integer uid) {
        return R.ok(dao.selectList(new LambdaQueryWrapper<CouponLog>().eq(CouponLog::getUid,uid)));
    }
}

